/****************************************************************************************************/
/**
\file       OS_TaskCfg.c
\brief      OS tasks configuration table
\version    1.0
\date       08/03/2014
*/
/****************************************************************************************************/
#include "OS_TaskCfg.h"
#include "OS_Task.h"


 /*****************************************************************************************************************************************************************************/
 /*                                                            Initial GPT and PIT Configurations                                                                             */
 /*****************************************************************************************************************************************************************************/

const OS_TaskType services_os_tasks [] = 
{ 
    //id_task      task_function          stackSize  rel. deadline   abs. deadline     mask                 offset            priority
    { Task_1p56ms,  TASK_NAME(Task_1p56ms),   0,         0,               0,        CNF_TASK_MASK_1P56MS ,        0,              0},
    { Task_6p25ms,  TASK_NAME(Task_6p25ms),   0,         0,               0,        CNF_TASK_MASK_1P56MS ,        0,              1},
    { Task_12p5ms , TASK_NAME(Task_12p5ms),   0,         0,               0,        CNF_TASK_MASK_6P25MS ,         0,              2},
    { Task_25ms,    TASK_NAME(Task_25ms),     0,         0,               0,        CNF_TASK_MASK_50MS ,         0,             4},
    { Task_50ms,    TASK_NAME(Task_50ms),     0,         0,               0,        CNF_TASK_MASK_50MS ,           0,             4},
    { Task_100ms,   TASK_NAME(Task_100ms),    0,         0,               0,        CNF_TASK_MASK_50MS ,          0,              5}
};
 /*
OS_TaskType services_os_tasks [] = 
{ 
    //id_task      task_function          stackSize  rel. deadline   abs. deadline     mask                 offset            priority
    { Task_1p56ms,  TASK_NAME(Task_1p56ms),   0,         0,               0,        CNF_TASK_MASK_1P56MS,       0,              0},
    { Task_6p25ms,  TASK_NAME(Task_6p25ms),   0,         0,               0,        CNF_TASK_MASK_6P25MS,       0,              1},
    { Task_12p5ms , TASK_NAME(Task_12p5ms),   0,         0,               0,        CNF_TASK_MASK_6P25MS,       0,              2},
    { Task_25ms,    TASK_NAME(Task_25ms),     0,         0,               0,        CNF_TASK_MASK_6P25MS,       0,              3},
    { Task_50ms,    TASK_NAME(Task_50ms),     0,         0,               0,        CNF_TASK_MASK_6P25MS,       0,              4},
    { Task_100ms,   TASK_NAME(Task_100ms),    0,         0,               0,        CNF_TASK_MASK_6P25MS,       0,              5}
};
  */

const OS_TaskConfigType services_os_task=
{  
   sizeof(services_os_tasks)/sizeof(services_os_tasks[0]),
   services_os_tasks
} ;

/******************************************************************************************************************************************************************************/
   



